<template>
  <div id="myToast" v-text="text" @click.prevent></div>
</template>

<script>
export default {
  name: 'Toast',
  props: {
    text: String
  }
  // 显示toast
  // 隐藏toast
  // 持续显示toast
  // 更新toast里的文本
}
</script>

<style scoped>
#myToast {
  width: 80vw;
  height: 8vh;
  position: fixed;
  top: 50%;
  left: 10%;
  z-index: 999;
  border-radius: 20px;
  /* line-height: px2rem(20); */
  padding: 18px 0px;
  background: #ccc;
  font-size: px2rem(14);
  color: white;
  text-align: center;
  word-break: break-all;
  box-sizing: border-box;
}
</style>
